package com.ym.core.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author <a href="https://github.com/binarywang">Binary Wang</a>
 */

@Configuration
@ConfigurationProperties(prefix = "wx")
@Data
public class WxProperties {

	private Open open;
	private Msg msg;
	private Pay pay;

	@Data
	public static class Pay {

		private String payManaIp;

		private String callBackIp;
	}

	@Data
	public static class Msg {
		private String miniState;
	}

		@Data
	public static class Open {

		private String appId;

		private String secret;

		private String token;

		private String aesKey;
	}
}

